require.config({
	paths : {
		"jquery" : "lib/jquery-1.10.2.min",
		"ajaxfileupload" : "lib/ajaxfileupload",
		"pagination" : "lib/pagination",
		"dingtalk" : "lib/dingtalk",
		"angular" : "lib/angular/angular.min",
		"angularResource" : "lib/angular/angular-resource",
		"uiRoute" : "lib/ui-router/angular-ui-router.min",
		"angularSanitize" : "lib/angular/angular-sanitize.min",
		"angularAnimate" : "lib/angular/angular-animate.min",
		"angularCookies" : "lib/angular/angular-cookies",
		"angularLocale" : "lib/angular/i18n/angular-locale_zh-cn",
		"artDialog": "lib/artDialog4.1.7/artDialog",
		"iframeTools": "lib/artDialog4.1.7/plugins/iframeTools.source",
		
		/*圆形指示器*/
		"radial" :"lib/radial/radialIndicator",
		"angularRadial" :"lib/radial/angular.radialIndicator",
		
		/*highcharts 图表*/
		"highcharts" :"lib/highcharts/highcharts",
		"highcharts-ng" :"lib/highcharts/highcharts-ng",
		"bootstrapUI" : "lib/angular/angularUI/ng-bootstrap/ui-bootstrap-tpls-0.12.1.min",
		"bootstrapJs" : "lib/bootstrap.min",
		"datetimepicker" : "lib/datetimepicker/js/bootstrap-datetimepicker.min",
		"datetimepickerCn" : "lib/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN",
		"jqueryUI" : "lib/jqueryui/jquery-ui-1.10.3.custom.min",
		"jquery-ui" : "lib/jquery-ui/jquery-ui.min",
		"jqueryUITouchPunch" : "lib/jquery-ui-touch-punch/jquery.ui.touch-punch.min",
		"uislider" : "lib/uislider/slider",
		"moment" : "lib/moment/moment",
		"websocket" : "lib/websocket",
		"md5" : "lib/md5/md5",
		"des" : "lib/crypto/tripledes",
		"crypto": "lib/crypto/core",
		"ecb" : "lib/crypto/mode-ecb",
		"lodash" : "lib/lodash/lodash.min",
		"postal" : "lib/postal/postal.min",
		"jcrop" : "lib/jcrop/jquery.Jcrop.min",
		"ngTable" : "lib/table/ng-table",
		"ueditor" : "lib/ueditor/ueditor.all.min",
		"ueditor.config" : "lib/ueditor/ueditor.config.min",
		"angularUEditor": "lib/angular-ueditor/angular-ueditor.min",
        "spin": "lib/spin.js/spin.min",
		"webuploader": "lib/webuploader/webuploader.html5only.min",
		"IndexedDBShim": "lib/IndexedDBShim/IndexedDBShim",
		"jqueryIndexeddb": "lib/jquery-indexeddb/jquery.indexeddb",
		"caret": "lib/caret/jquery.caret",
		"ResizeSensor": "lib/ResizeSensor/ResizeSensor",
		"mCustomScrollbar": "lib/mCustomScrollbar/jquery.mCustomScrollbar.min",
		"easing": "lib/rotate/jquery.easing.min",
		"rotate" : "lib/rotate/jQueryRotate.2.2",
		"mousewheel" : "lib/rotate/jquery.mousewheel.min"
	},
	shim : {
		"angular" : {
			"deps" : ["jquery"],
			"exports" : "angular"
		},
		"angularLocale" : ["angular"],
		"dingtalk":["angular","jquery"],
		"highcharts" :["angular","jquery"],
		"highcharts-ng" :["angular","jquery"],
		"uiRoute" : ["angular"],
		"angularResource" : ["angular"],
		"angularSanitize" : ["angular"],
		"angularAnimate" : ["angular"],
		"angularCookies" : ["angular"],
		"bootstrapUI" : ["angular"],
		"bootstrapJs" : ["jquery"],
		"datetimepicker": ["jquery"],
		"datetimepickerCn": ["datetimepicker"],
		"jqueryUI": ["jquery"],
		"jqueryUITouchPunch": ["jqueryUI"],
		"uislider": ["angular", "jqueryUI", "jqueryUITouchPunch"],
		"moment": {"exports" : "moment"},
		'websocket': {'exports' : 'YGWebSocket'},
		'ecb':['des'],
		'jcrop': ['jquery'],
		'ngTable' : ["angular"],
		'ueditor': ['ueditor.config'],
		'angularUEditor': ["ueditor"],
		'webuploader': ['jquery'],
        'jqueryIndexeddb': ['jquery', 'IndexedDBShim'],
		'caret': ['jquery'],
		'ResizeSensor': {
            'deps': ['jquery'],
            'exports': 'ResizeSensor'
        },
        'mCustomScrollbar': ['jquery'],
        'easing' : ['jquery'],
        'rotate' : ['jquery'],
        'mousewheel' : ['jquery'],
        'iframeTools': ['jquery','artDialog'],
        'artDialog': ['jquery']
	},
	priority: [
		"jquery",
		"angular"
	]
});

require(["app", "jquery", "ieVersion"], function (app, $, ieVersion) {
	$(document).ready(function() {
		angular.bootstrap(document, [app.name]);
	});

    if (ieVersion) {
        $(document.body).addClass('ie').addClass('ie' + ieVersion);
    }
});